/**
* @filename:${entityName} ${createTime}
* @project ${project}  ${version}
* Copyright(c) 2020 ${author} Co. Ltd.
* All right reserved.
*/
package ${configObj.entityPath};
import com.fasterxml.jackson.annotation.JsonProperty;
import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
<#if isSwagger=="true" >
import io.swagger.annotations.ApiModelProperty;
</#if>
import java.io.Serializable;
import lombok.Data;
<#list pkgs as ps>
    <#if ps??>
import ${ps};
    </#if>
</#list>

/**
* @Description:(${entityName}-${tableRemark}实体类)
*
* @version: ${version}
* @author: ${author}
*
*/
@Data
@TableName("${table}")
public class ${entityName} implements Serializable {

    private static final long serialVersionUID = 1L;
<#list cis as ci>
    <#if ci.javaType=="Date">
        <#if ci.jdbcType=="date">
    @JsonFormat(pattern="yyyy-MM-dd",timezone = "GMT+8")
        <#elseif ci.jdbcType=="time">
    @JsonFormat(pattern="HH:mm:ss",timezone = "GMT+8")
        <#else>
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
        </#if>
    </#if>
    <#if ci.property=="id">
    @TableId(value = "id", type = IdType.AUTO)
    </#if>
    <#if isSwagger=="true">
    @ApiModelProperty(value = "${ci.comment}")
    @JsonProperty("${ci.property}")
    </#if>
    <#if ci.javaType=="LocalDateTime" || ci.javaType=="LocalDate"  || ci.javaType=="LocalTime" >
        <#if ci.jdbcType=="date">
    @JsonFormat(pattern="yyyy-MM-dd",timezone = "GMT+8")
        <#elseif ci.jdbcType=="time">
    @JsonFormat(pattern="HH:mm:ss",timezone = "GMT+8")
        <#else>
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
        </#if>
    </#if>
    private ${ci.javaType} ${ci.property};

</#list>
}
